package day21;

public class Test {
    public static void main(String[] args) {
        try {
            String str = "11111333121111";
            for (int i = 0; i < str.length() / 2; i++) {
                char a = str.charAt(i);
                char b = str.charAt(str.length() - 1 - i);
                if(a != b) {
                    System.out.println("不是");
                    System.exit(0); // 唯一不会执行finally的代码
                }
            }
            System.out.println("是回文");
        } finally {
            System.out.println("finally");
        }
    }
}
